import request from '@/utils/request'

export default {
    //宠物体检信息列表
    getPetInformationList(current,limit,searchObj){
        return request({
            url: `/admin/hosp/petInformation/findPagePetInformation/${current}/${limit}`,
            method: 'post',
            data: searchObj //使用json
          })
    },

    //删除宠物体检信息
deletePetInformation(id) {
    return request ({
      url: `/admin/hosp/petInformation/${id}`,
      method: 'delete'
    })
  },

  //批量删除
  batchRemovePetInformation(idList) {
    return request ({
      url: `/admin/hosp/petInformation/batchRemove`,
      method: 'delete',
      data: idList
    })
  },
 
//预约保存
savePetInformation(petInformation) {
  return request ({
    url: `/admin/hosp/petInformation/savePetInformation`,
    method: 'post',
    data: petInformation
  })
},
//宠物体检信息id查询
getPetInformation(id) {
  return request ({
    url: `/admin/hosp/petInformation/getPetInformation/${id}`,
    method: 'get'
  })
},
//修改宠物体检信息
updatePetInformation(petInformation) {
  return request ({
    url: `/admin/hosp/petInformation/updatePetInformation`,
    method: 'post',
    data: petInformation
  })
}

}
